using AzManContrib.MVC.Decorators;
using AzManContrib.MVC.Initialization;

namespace AzManContrib.MVC.FluentApi
{
    public class InitializationSpecReaction
    {
        public InitializationSpec Throws()
        {
            AzMan.AzManApplication = new WrappingAzManApplication<ThrowingAzManClientContext>();
            return new InitializationSpec();
        }

        public InitializationSpec Deny()
        {
            AzMan.AzManApplication = new WrappingAzManApplication<DenyingAzManClientContext>();
            return new InitializationSpec();
        }

        public InitializationSpec Accept()
        {
            AzMan.AzManApplication = new WrappingAzManApplication<AcceptingAzManClientContext>();
            return new InitializationSpec();
        }
    }
}